package com.mf.cloud.apis;

import com.mf.cloud.entites.PayDTO;
import com.mf.cloud.resp.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: lmf
 * @Create: 2024/3/19 19:33
 * Description:  测试使用GateWay网关调用
 */
@FeignClient("cloud-gateway")
public interface PayGateWarFeignApi {
    /**
     * 使用id获取
     */
    @GetMapping("/pay/gateWay/get/{id}")
    public ResultData<PayDTO> getPayGatewayById(@PathVariable("id") Integer id);

    @GetMapping("/pay/gateWay/info")
    public ResultData<String> getPayGatewayInfo();
}
